﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Acms.AcmsControls.ContentControls.FrontEnd
{
    public class PostLinkImage : PostLink
    {
        /// <summary>
        /// Url for the image
        /// </summary>
        public string ImageUrl { get; set; }

        protected override void RenderInnerContents(System.Web.UI.HtmlTextWriter writer)
        {
            writer.Write("<img src=\"{0}\" alt=\"{1}\"/>", Page.ResolveUrl(ImageUrl), TextToUse);
        }
    }
}
